package com.share.tool.mock.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.share.common.common.Page;
import com.share.tool.mock.model.db.SourceConf;
import com.share.tool.mock.model.vo.SourceConfPageReq;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2023-11-24
 */
public interface ISourceConfService extends IService<SourceConf> {
    Object init();

    Page pageList(SourceConfPageReq req);

    SourceConf getByStepCode(String stepCode);


    SourceConf getByEventAndStepCode(String eventCode, String stepCode);

    Map<String, List<SourceConf>> getEventMap();

    List<SourceConf> listByEventCode(String eventCode);

    SourceConf getByConfId(Long confId);
}
